package com.whm.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.whm.common.annotation.Excel;
import com.whm.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.apache.ibatis.annotations.Mapper;

/**
 * 文件信息对象 sys_file_info
 * 
 * @author whm
 * @date 2024-02-01
 */
@Data

@TableName(value = "sys_file_info")
public class SysFileInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件id */
    @TableId("file_id")
    private Long fileId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件路径 */
    @Excel(name = "文件路径")
    @TableField(value = "file_path")
    private String filePath;

    /** 依赖id */
    @Excel(name = "依赖id")
    @TableField(value = "relId")
    private Long relId;

    /** 文件描述 */
    @Excel(name = "文件描述")
    private String description;

    /** 依赖实体类 */
    @Excel(name = "依赖实体类")
    private String reltype;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long size;

    /** 文件扩展名 */
    @Excel(name = "文件扩展名")
    private String extension;

    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setRelId(Long relId) 
    {
        this.relId = relId;
    }

    public Long getRelId() 
    {
        return relId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setReltype(String reltype) 
    {
        this.reltype = reltype;
    }

    public String getReltype() 
    {
        return reltype;
    }
    public void setSize(Long size) 
    {
        this.size = size;
    }

    public Long getSize() 
    {
        return size;
    }
    public void setExtension(String extension) 
    {
        this.extension = extension;
    }

    public String getExtension() 
    {
        return extension;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("fileId", getFileId())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("relId", getRelId())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("reltype", getReltype())
            .append("size", getSize())
            .append("extension", getExtension())
            .toString();
    }
}
